<?php

namespace App\Http\Controllers\admin;
use Illuminate\Support\Facades\Redis;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class IndexController extends Controller
{
    /**
     * 后台首页
     *
     */
    public function index(Request $Request)
    {   
    	if(Auth::guard('admins')->check()){
    		return view('admin/index',['username'=>session('username')]);
    	}else{

    		return redirect('/admin/login');
    	}
    }
}